using System;
using System.Text;

namespace OVS.BusinessObjects
{
	[Serializable()]
	public partial class Camera
	{
		private int _came_id;

		public int came_id
		{
			get { return _came_id; }
			set { _came_id = value; }
		}

		private string _came_loc;

		public string came_loc
		{
			get { return _came_loc; }
			set { _came_loc = value; }
		}

		private string _came_url;

		public string came_url
		{
			get { return _came_url; }
			set { _came_url = value; }
		}

		private string _came_desc;

		public string came_desc
		{
			get { return _came_desc; }
			set { _came_desc = value; }
		}

		private string _came_nom;

		public string came_nom
		{
			get { return _came_nom; }
			set { _came_nom = value; }
		}

		private Nullable<bool> _came_use;

		public Nullable<bool> came_use
		{
			get { return _came_use; }
			set { _came_use = value; }
		}

		public Camera()
		{ }

		public Camera(int came_id,string came_loc,string came_url,string came_desc,string came_nom,Nullable<bool> came_use)
		{
			this.came_id = came_id;
			this.came_loc = came_loc;
			this.came_url = came_url;
			this.came_desc = came_desc;
			this.came_nom = came_nom;
			this.came_use = came_use;
		}

		public override string ToString()
		{
			return "came_id = " + came_id.ToString() + ",came_loc = " + came_loc + ",came_url = " + came_url + ",came_desc = " + came_desc + ",came_nom = " + came_nom + ",came_use = " + came_use.ToString();
		}

		public partial class came_idComparer : System.Collections.Generic.IComparer<Camera>
		{
			public SorterMode SorterMode;
			public came_idComparer()
			{ }
			public came_idComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Camera> Membres
			int System.Collections.Generic.IComparer<Camera>.Compare(Camera x, Camera y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.came_id.CompareTo(x.came_id);
				}
				else
				{
					return x.came_id.CompareTo(y.came_id);
				}
			}
			#endregion
		}
		public partial class came_locComparer : System.Collections.Generic.IComparer<Camera>
		{
			public SorterMode SorterMode;
			public came_locComparer()
			{ }
			public came_locComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Camera> Membres
			int System.Collections.Generic.IComparer<Camera>.Compare(Camera x, Camera y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.came_loc.CompareTo(x.came_loc);
				}
				else
				{
					return x.came_loc.CompareTo(y.came_loc);
				}
			}
			#endregion
		}
		public partial class came_urlComparer : System.Collections.Generic.IComparer<Camera>
		{
			public SorterMode SorterMode;
			public came_urlComparer()
			{ }
			public came_urlComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Camera> Membres
			int System.Collections.Generic.IComparer<Camera>.Compare(Camera x, Camera y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.came_url.CompareTo(x.came_url);
				}
				else
				{
					return x.came_url.CompareTo(y.came_url);
				}
			}
			#endregion
		}
		public partial class came_descComparer : System.Collections.Generic.IComparer<Camera>
		{
			public SorterMode SorterMode;
			public came_descComparer()
			{ }
			public came_descComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Camera> Membres
			int System.Collections.Generic.IComparer<Camera>.Compare(Camera x, Camera y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.came_desc.CompareTo(x.came_desc);
				}
				else
				{
					return x.came_desc.CompareTo(y.came_desc);
				}
			}
			#endregion
		}
		public partial class came_nomComparer : System.Collections.Generic.IComparer<Camera>
		{
			public SorterMode SorterMode;
			public came_nomComparer()
			{ }
			public came_nomComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Camera> Membres
			int System.Collections.Generic.IComparer<Camera>.Compare(Camera x, Camera y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.came_nom.CompareTo(x.came_nom);
				}
				else
				{
					return x.came_nom.CompareTo(y.came_nom);
				}
			}
			#endregion
		}
	}
}
